package clientDemo.entity;

import java.io.Serializable;
import java.util.Date;


public class Mission implements Serializable {

    private static final long serialVersionUID = 6173294559393096942L;

    //ID
    private String id;

    //地图的ID
    private String agvMapId;

    //任务组ID
    private String missionGroupId;

    //任务名称
    private String name;

    //任务描述
    private String description;

    //机器人的ID,任务指定执行的机器人ID
    private String agvId;

    //机器人组的ID,任务只会分配给组内的机器人
    private String agvGroupId;

    //优先级,1:低，2：普通，3：高，4：最高. 默认是2
    private Integer sequence;

    //是否可中断,True:任务可以被更高优级的新任务中断，False:必须执行完成后才能执行其他的任务。
    private Boolean interrupt;

    //创建时间
    private Date createTime;

    //更新时间
    private Date updateTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAgvMapId() {
        return agvMapId;
    }

    public void setAgvMapId(String agvMapId) {
        this.agvMapId = agvMapId;
    }

    public String getMissionGroupId() {
        return missionGroupId;
    }

    public void setMissionGroupId(String missionGroupId) {
        this.missionGroupId = missionGroupId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getAgvId() {
        return agvId;
    }

    public void setAgvId(String agvId) {
        this.agvId = agvId;
    }

    public String getAgvGroupId() {
        return agvGroupId;
    }

    public void setAgvGroupId(String agvGroupId) {
        this.agvGroupId = agvGroupId;
    }

    public Integer getSequence() {
        return sequence;
    }

    public void setSequence(Integer sequence) {
        this.sequence = sequence;
    }

    public Boolean getInterrupt() {
        return interrupt;
    }

    public void setInterrupt(Boolean interrupt) {
        this.interrupt = interrupt;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Mission{" +
                "id='" + id + '\'' +
                ", agvMapId='" + agvMapId + '\'' +
                ", missionGroupId='" + missionGroupId + '\'' +
                ", name='" + name + '\'' +
                ", description='" + description + '\'' +
                ", agvId='" + agvId + '\'' +
                ", agvGroupId='" + agvGroupId + '\'' +
                ", sequence=" + sequence +
                ", interrupt=" + interrupt +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }

    public Mission() {

    }
}
